﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Types
{
    [Serializable]
    public class QuestionType
    {
        public int id { get; set; }
        public string summary { get; set; }
        public string filePath { get; set; }
        public DateTime date { get; private set; }
        public string creatorName { get; private set; }
        public int courseId { get; private set; }

        public QuestionType(int id, string summary, string filePath, string creator, int courseId)
        {
            this.id = id;
            this.summary = summary;
            this.filePath = filePath;
            this.date = DateTime.Now;
            this.creatorName = creator;
            this.courseId = courseId;
        }
    }
}
